#!/bin/sh

export PROJECT_PATH="/home/openkai/social-credits/spark-tutorial"
#export SPARK_HOME="/home/openkai/social-credits/spark/spark-1.5.1"
export SPARK_HOME="/home/openkai/social-credits/spark/spark-1.5.2"
cd $PROJECT_PATH && rm -f extrafile.zip &&  zip  -r extrafile.zip *.* ./data/*.* --exclude demo1.py *.pyc *.sh
$SPARK_HOME/bin/spark-submit --master spark://192.168.31.242:7077 --py-files ./extrafile.zip  $PROJECT_PATH/demo1.py

